/**
 * Copyright 2009 Jalmari "linksu" L.
 *
 * This file is part of Bitter.
 *
 * Bitter is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Bitter is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Bitter.  If not, see <http://www.gnu.org/licenses/>.
 */

import org.jibble.pircbot.*;

public class Bitter extends PircBot {

    public Bitter() {
        this.setName("Bitter");
        this.setLogin("bitter");
        this.setVersion("Bitter v0.001");
    }

    public void onMessage(String channel, String sender,
            String login, String hostname, String message) {
        if (message.equalsIgnoreCase("time")) {
            String time = new java.util.Date().toString();
            sendMessage(channel, sender + ": The time is now " + time);
        }
    }
}
